feat(NodOn): modernize SDO-4-1-00 and add configureReporting for ssIasZone/zoneStatus#12523
Open
nthiers wants to merge 2 commits into
Open
feat(NodOn): modernize SDO-4-1-00 and add configureReporting for ssIasZone/zoneStatus#12523nthiers wants to merge 2 commits into
nthiers wants to merge 2 commits into
Conversation
…sZone Replace legacy fz.ias_contact_alarm_1 + manual exposes with m.iasZoneAlarm modernExtend. Add configureReporting for ssIasZone/zoneStatus so the periodic heartbeat interval is visible in Z2M Reporting tab. No bind required: coordinator already enrolled as IAS CIE during pairing. Tested on firmware V4.3.0, Z2M 2.12.0, overnight monitoring confirmed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The current
SDO-4-1-00definition has two issues:1. Incomplete modernExtend migration
The entry mixes legacy converters with
modernExtend:fz.batteryis already covered bym.battery.fz.ias_contact_alarm_1ande.contact()are covered bym.iasZoneAlarm.2. No
configureReportingforssIasZone/zoneStatusWithout it, the periodic heartbeat interval is never configured. The attribute does not appear in Z2M's Reporting tab and stays at whatever the device factory default is.
Fix
{ zigbeeModel: ['SDO-4-1-00'], model: 'SDO-4-1-00', vendor: 'NodOn', description: 'Door & window opening sensor', - fromZigbee: [fz.battery, fz.ias_contact_alarm_1], - toZigbee: [], - exposes: [e.contact()], extend: [ m.battery({voltageReporting: true}), + m.iasZoneAlarm({zoneType: 'contact', zoneAttributes: ['alarm_1']}), ], + configure: async (device, coordinatorEndpoint) => { + const endpoint = device.getEndpoint(1); + await endpoint.configureReporting('ssIasZone', [{ + attribute: 'zoneStatus', + minimumReportInterval: 0, + maximumReportInterval: constants.repInterval.HOUR, + reportableChange: 1, + }]); + }, ota: true, },Tested
configureReportingconfirmed applied:cluster ssIasZone (0x0500), attr zoneStatus (0x0002), min: 0s, max: 3600s, change: 1